﻿using System.Windows.Forms;
using BingoClientModel;
using BingoServerCommon.Common;

namespace _TestClient.Business.Account
{
	/// <inheritdoc />
	public class Login_Ret : Package
	{


		public Login_Ret(EnumPackCommand mainid) : base(mainid)
		{

		}

		public Login_Ret(byte[] buffer, int len) : base(buffer, len)
		{
		}

		public override Package Clone(byte[] bytes)
		{
			return new Login_Ret(bytes, bytes.Length);
		}



		/// <summary>
		/// 
		/// </summary>
		public override void Excute(Session session)
		{

			var retType = this.ReadByte();
			if (retType == (int)EnumReqRetStatus.Success)
			{
				MessageBox.Show("进入游戏后，得到服务端返回success");
			}
			else
			{
				MessageBox.Show("进入游戏后，得到服务端返回Fail");
			}
		}
	}
}
